Differences to Ruby's HAML
Not enough to care:
all the test cases found in the .json files of the original Ruby distribution pass.
- HAML-TO-PHP sets escape_html to true by default
- of course no Ruby code is supported. You mixin PHP code instead
- Because HAML-TO-PHP renders more static content some very rare specific cases behave differently. Such an example is:
%tag{ "#{foo()}" => "v1", "#{foo()}" => "v2"}
Ruby's HAML only keeps one tag if foo() evaluates to the same value twice.
HAML-TO-PHP will render the same tag twice.
This could be fixed. However it would mean that the PHP representation of the HAML code has to evaluate more PHP code yielding slow downs. If this matters to you talk support. - line continuation
|
is not supported yet - could be fixed easily (-> support) - markdown support etc is not included (yet). You can add your own filters providing this implementation easily
Next: customize HAML-to-PHP